<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use common\models\user;

/* @var $this yii\web\View */
/* @var $model common\models\User */
/* @var $form yii\widgets\ActiveForm */
?>

<?php $form = ActiveForm::begin(['options' => ['role' => 'form']]); ?>
    <div class="box-body">

            <?= $form->field($model, 'username')->textInput(['maxlength' => true]) ?>

            <?= $form->field($model, 'email')->textInput(['maxlength' => true]) ?>

            <?= $form->field($model, 'status')->dropDownList(User::allStatus(),['prompt' => '请选择状态']) ?>
    </div>

    <div class="box-footer">
        <?= Html::submitButton($model->isNewRecord ? '新 增' : '修 改',['class' => 'btn btn-success']) ?>
        <?= Html::a(Html::button('取 消',['class' => 'btn btn-default']), ['index'] ) ?>
    </div>

<?php ActiveForm::end(); ?>